<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/25
  Time: 14:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>修改</title>
  </head>
  <body>
    <form action="${pageContext.request.contextPath}/person?method=update" method="post">
      <table>

        <tr>
          <td>  人员编号</td>
          <td>  <input type="text" name="person_id" value="${person.person_id}" readonly></td>
        </tr>
        <tr>
          <td>  人员姓名</td>
          <td>  <input type="text" name="person_name" value="${person.person_name}"></td>
        </tr>
        <tr>
          <td>  人员年龄</td>
          <td>  <input type="text" name="person_age" value="${person.person_age}"></td>
        </tr>
        <tr>
          <td>  人员地址</td>
          <td>  <input type="text" name="person_address" value="${person.person_address}"></td>
        </tr>
        <tr>
          <td>  所在区域</td>
          <td> <select name="person_area_id">
            <c:forEach items="${allArea}" var="area">
              <option value="${area.area_id}"
              ${area.area_id==person.person_area_id?'selected="selected"':''}
              >${area.area_name}</option>
            </c:forEach>
           <%-- <option value="1">aaa</option>
            <option value="2">bbb</option>
            <option value="3"  >ccc</option>
            <option value="4" selected="selected">ddd</option>--%>
          </select></td>
        </tr>


      </table>
    <input type="submit" value="修改">
    <input type="reset" value="重置">


    </form>
  </body>
</html>
